package club.caihappy.store.service;

import club.caihappy.store.entity.Cart;
import club.caihappy.store.entity.Product;
import club.caihappy.store.mapper.CartMapper;
import club.caihappy.store.vo.CartVO;

import java.util.List;

/**
 * Created by DELL on 2022/3/22
 **/
public interface ICartService {

    /**
     * 将商品添加到购物车中
     */
    void addToCart(Integer pid, Integer uid, Integer num, String username);

    List<CartVO> getVOByUid(Integer uid);

    /**
     * 更新用户购物车数据的数量
     */
    void changeNum(Integer cid, Integer uid, String username, Integer num);

    void deleteCart(Integer cid,Integer uid);

    List<CartVO> getVOByCid(Integer uid,Integer[] cids);
}
